package com.banca2.bracketplant.main;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;

import com.banca2.bracketplant.R;
import com.banca2.bracketplant.utils.LogUtil;
import com.viewpagerindicator.TabPageIndicator;

/*********************************************************************<br>
 * MainActivity.java												 *<br>
 * 功 能：	功能主Acticity 												 *<br>
 * 																	 *<br>
 *  Ver   变更日期        负责人  					变更内容                        			 *<br>
 * ───────────────────────────────────────────────────────────────── *<br>
 * V0.01 2015-6-7	ZQ      				    创建					 *<br>
 * 																	 *<br>
 * Copyright (c) 2015 StarFollower Corporation. All rights reserved. *<br>
 *┌─────────────────────────────────────────────────────────────────┐*<br>
 *│　此技术信息为本团队机密信息，未经本团队书面同意禁止向第三方披露．　				│*<br>
 *│　版权所有：StarFollower　　　　　　　　　　                     　					│*<br>
 *└─────────────────────────────────────────────────────────────────┘*<br>
 *********************************************************************/
public class MainActivity extends FragmentActivity {

	private TabPageIndicator mIndicator;
	private ViewPager mViewPager;
	private FragmentPagerAdapter mAdapter;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		LogUtil.v(this, "onCreate() - start");
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		mIndicator = (TabPageIndicator) findViewById(R.id.id_main_indicator);
		mViewPager = (ViewPager) findViewById(R.id.id_main_pager);
		mAdapter = new TabAdapter(getSupportFragmentManager(), getResources().getStringArray(R.array.tab_title));
		mViewPager.setAdapter(mAdapter);
		mIndicator.setViewPager(mViewPager, 2);//首页显示“约谈”
		LogUtil.v(this, "onCreate() - end ");
	}// onCreate
}// MainActivity
